#pragma once

CString GetProcNameById(DWORD nPid);

#if (_WIN32_WINNT < 0x0600)

#define PROCESS_DEP_ENABLE                          0x00000001
#define PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION     0x00000002

typedef WINBASEAPI BOOL (WINAPI *SetProcessDEPPolicy)(
                    __in DWORD dwFlags
                    );

typedef WINBASEAPI BOOL (WINAPI *GetProcessDEPPolicy)(
                    __in HANDLE hProcess,
                    __out LPDWORD lpFlags,
                    __out PBOOL lpPermanent
                    );

#endif // _WIN32_WINNT >= 0x0600